package com.lin.sqltool.model;

import java.util.List;

public class ConfigItemModel {

    /**
     * 名称
     */
    private String name;

    /**
     * key
     */
    private String key;

    /**
     * 类型 select、 checkbox 、 text、
     */
    private String type;

    /**
     * select和checkbox选项
     */
    private List<String> options;

    /**
     * 默认值
     */
    private String defaultValue;

    /**
     * 选择的值
     */
    private String  value;

    // 构造方法
    public ConfigItemModel(String name,String key, String type,String value, String defaultValue, List<String> options) {
        this.name = name;
        this.type = type;
        this.defaultValue = defaultValue;
        this.options = options;
        this.value = defaultValue; // 初始化默认值
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<String> getOptions() {
        return options;
    }

    public void setOptions(List<String> options) {
        this.options = options;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
